<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no" />
    <title>我的算力</title>
    <link rel="stylesheet" href="../../css/reset.css">
    <style>
        body {
            width: 100%;
            background-color: #f7f7f7;
            font-size: 0.28rem;
            height: auto;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            font-family: PingFangSC-Regular, sans-serif;
            color: #333333;
        }

        .showheader {
            width: 100%;
            height: 2.41rem;
            background: url("../../image/bghhax.png") no-repeat center;
            background-size: 100% 100%;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .showheader p {
            width: 100%;
            height: auto;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.28rem;
            font-family: PingFang SC;
            font-weight: 500;
            margin-bottom: 0.27rem;
        }

        .showheader b {
            width: 100%;
            height: auto;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.36rem;
        }

        .showchoose {
            width: 100%;
            height: 0.5rem;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 0.4rem;
            padding: 0 0.3rem;
            box-sizing: border-box;
        }

        .showchoose b {
            width: 30%;
            height: 0.5rem;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: flex-start;
            font-size: 0.32rem;
            font-family: PingFang SC;
            font-weight: bold;
            color: rgba(24, 24, 24, 1);
        }

        .showchoose p {
            width: 30%;
            height: 0.5rem;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: flex-end;
            font-size: 0.26rem;
            font-family: PingFang SC;
            font-weight: 500;
            color: rgba(137, 137, 137, 1);
        }
    </style>
</head>

<body>
    <div class="showheader">
        <p>
            <img src="../../image/iconasxx.png"
                style="width: 0.3rem;height: 0.3rem;border-radius:0.08rem;margin-right: 0.1rem;"> BTC
        </p>
        <b>
            0.00000000
        </b>
    </div>
    <div class="showchoose">
        <b>
            挖矿收益
        </b>
        <p class="goBhpayPage">
            双挖分币<img src="../../image/right_jintou.png" style="margin-left: 0.1rem;">
        </p>
    </div>
    <img src="../../image/bgggx.png"
        style="width: 2.39rem;height: 2.63rem;margin-top: 2.4rem;margin-left: calc((100% - 2.39rem) /2);">
    <script src="../../script/autosize.js"></script>
    <script src="../../script/fastclick.js"></script>
    <script src="../../script/jquery_three_two_one.js"></script>
    <script src="../../script/app.js"></script>
    <script>
        apiready = function () {
            var app = new APP();
            var account = app.getAccount();
            $(".showchooselist li").on("click", function () {
                $(".showchooselist li").css({
                    color: "#595959",
                    fontWeight: "normal",
                    fontSize: "0.26rem"
                }).find("span").css({
                    backgroundColor: "#f7f7f7"
                });
                $(this).css({
                    color: "rgba(24, 24, 24, 1)",
                    fontWeight: "bold",
                    fontSize: "0.32rem"
                }).find("span").css({
                    backgroundColor: "#ffd203"
                });
            })
            $(".goBhpayPage").click(function () {
                app.getBhpayAbout(function (ret) {
                    if (!ret.code == 200) {
                        var param = {
                            dtype: "dialog41"
                        };
                        app.dialog(param);
                        setTimeout(function () {
                            app.closeF("dialog");
                            app.openWin({
                                name: "browser_headerwin",
                                url: app.hd + "common/headerwin.html",
                                pageParam: {
                                    subpage: ret.data,
                                    name: "browser",
                                    type: "remote",
                                    isremote: "true",
                                    title: "BHPay",
                                    openBHpay: 'true'
                                }
                            });
                            // var param = {
                            //     name: "BHPayBorser",
                            //     url: ret.data,
                            //     title: "BHPay",
                            //     param: {
                            //         openBHpay: 'true'
                            //     }
                            // }
                            // app.setNavBarAttrPrimary(param);
                        }, 1500);
                    } else {
                        var param = {
                            dtype: "dialog11",
                            data: {
                                title: "提示",
                                text: "您暂未关联BHPay，关联后可查看",
                                btns: [{
                                    name: "取消",
                                    event: "canalOt"
                                }, {
                                    name: "去关联BHPay账户",
                                    event: "goLineBhpay"
                                }]
                            }
                        };
                        app.dialog(param);
                    }
                })
            });
            app.listen("goLineBhpay", function () {
                app.checkStaus("gocheckPass", function (ret) {
                    if (ret == 200) {
                        var pageValue = {
                            name: "relateaccount",
                            subpage: "mine/relateaccount",
                            title: "关联BHPAY账户",
                            param: {
                                pageName: "relateaccount"
                            }
                        }
                        app.setNavBarAttr(pageValue);
                    } else {
                        app.listen("gocheckPassnew", function () {
                            if (isOversea.type == 1 && isOversea.status != -2) {
                                var pageValue = {
                                    name: "certification",
                                    subpage: "my/certification",
                                    title: "实名认证",
                                    param: {
                                        pageName: "certification",
                                        userName: isOversea.name,
                                        userIdNumber: isOversea.id_num,
                                        goMyPage: true
                                    }
                                }
                                app.setNavBarAttr(pageValue);
                                return
                            }
                            var pageValue = {
                                name: "choosecerfertion",
                                subpage: "my/choosecerfertion",
                                title: "实名认证",
                                param: {
                                    pageName: "choosecerfertion",
                                    goMyPage: true
                                }
                            }
                            app.setNavBarAttr(pageValue);
                        });
                    }
                })
            });
            app.headerMap(function (ret) {
                var cointypecontract = {
                    page: "common/headerwin",
                    name: "myincom_headerwin",
                    param: {
                        subpage: "mine/myincom",
                        name: "myincom",
                        allowEdit: true,
                        isOpenMyincome: "true"
                    }
                };
                var recoinNumber = JSON.stringify(cointypecontract);
                app.goPushPage(recoinNumber);
            });
        }
    </script>
</body>

</html>